ArcPad Extension Preferences File Schema
EDIT Element
See Also  Send comments on this topic.
ArcPad Extension Preferences File Schema > PAGE Element : EDIT Element

Glossary Item Box

Description

Used to define an Edit control in a form.

Diagram

EDIT Element

Overview

EDIT
Used to define an Edit control in a form.
height required Restriction of xs:int
width required Restriction of xs:int
x required xs:int
The x coordinate of the upper left corner of the text box.
y required xs:int
The y coordinate of the upper left corner of the text box
alignment optional Restriction of xs:string
autoincrement optional Restriction of xs:string
autoincrementstep optional xs:int
backgroundcolor optional xs:string
border optional Restriction of xs:string
color optional xs:string
defaultvalue optional xs:string
field optional xs:string
font optional xs:string
fontsize optional Restriction of xs:int
fontstyle optional Restriction of xs:string
group optional Restriction of xs:string
hscroll optional Restriction of xs:string
lowercase optional Restriction of xs:string
maxvalue optional xs:string
minvalue optional xs:string
multiline optional Restriction of xs:string
name optional xs:string
onchange optional xs:string
Specify the script to run when this event occurs.
onkillfocus optional xs:string
Specify the script to run when this event occurs.
onsetfocus optional xs:string
Specify the script to run when this event occurs.
onvalidate optional xs:string
Specify the script to run when this event occurs.
password optional Restriction of xs:string
readonly optional Restriction of xs:string
required optional Restriction of xs:string
sip optional Restriction of xs:string
tabstop optional Restriction of xs:string
uppercase optional Restriction of xs:string
vscroll optional Restriction of xs:string

Attributes

NameTypeUseDefaultFixedDescription
heightRestriction of xs:intrequired   
widthRestriction of xs:intrequired   
xxs:intrequired  The x coordinate of the upper left corner of the text box.
yxs:intrequired  The y coordinate of the upper left corner of the text box
alignmentRestriction of xs:stringoptionalleft  
autoincrementRestriction of xs:stringoptionalfalse  
autoincrementstepxs:intoptional1  
backgroundcolorxs:stringoptional   
borderRestriction of xs:stringoptionalfalse  
colorxs:stringoptional   
defaultvaluexs:stringoptional   
fieldxs:stringoptional   
fontxs:stringoptional   
fontsizeRestriction of xs:intoptional   
fontstyleRestriction of xs:stringoptionalregular  
groupRestriction of xs:stringoptionalfalse  
hscrollRestriction of xs:stringoptionalfalse  
lowercaseRestriction of xs:stringoptionalfalse  
maxvaluexs:stringoptional   
minvaluexs:stringoptional   
multilineRestriction of xs:stringoptionalfalse  
namexs:stringoptional   
onchangexs:stringoptional  Specify the script to run when this event occurs.
onkillfocusxs:stringoptional  Specify the script to run when this event occurs.
onsetfocusxs:stringoptional  Specify the script to run when this event occurs.
onvalidatexs:stringoptional  Specify the script to run when this event occurs.
passwordRestriction of xs:stringoptionalfalse  
readonlyRestriction of xs:stringoptionalfalse  
requiredRestriction of xs:stringoptionalfalse  
sipRestriction of xs:stringoptional   
tabstopRestriction of xs:stringoptionaltrue  
uppercaseRestriction of xs:stringoptionalfalse  
vscrollRestriction of xs:stringoptionalfalse  

Examples

ArcPad layer file (*.apl) with an edit form and an identify form.

Restrictions

The following attributes can only be used in edit and identify forms. They cannot be used in general forms:; field; required; The autoincrement and autoincrementstep attributes can only be used for bound EDIT controls.

Source

<xs:element name="EDIT" maxOccurs="1" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Used to define an Edit control in a form.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute use="required" ref="height">
      <xs:annotation>
        <xs:documentation>The height of the text box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute use="required" ref="width">
      <xs:annotation>
        <xs:documentation>The width of the text box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute use="required" name="x" type="xs:int">
      <xs:annotation>
        <xs:documentation>The x coordinate of the upper left corner of the text box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute use="required" name="y" type="xs:int">
      <xs:annotation>
        <xs:documentation>The y coordinate of the upper left corner of the text box</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="left" ref="alignment">
      <xs:annotation>
        <xs:documentation>The alignment of the text box's text.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="autoincrement" />
    <xs:attribute ref="autoincrementstep" />
    <xs:attribute ref="backgroundcolor">
      <xs:annotation>
        <xs:documentation>The background color to use for the text box. If not specified, this value is inherited from the page's backgroundcolor attribute.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="true" ref="border">
      <xs:annotation>
        <xs:documentation>Specifies whether the text box has a border.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="color">
      <xs:annotation>
        <xs:documentation>The color to use for the text box's text. If not specified, this value is inherited from the page's color attribute.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="defaultvalue">
      <xs:annotation>
        <xs:documentation>A simple expression that specifies the default value of the text box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="field">
      <xs:annotation>
        <xs:documentation>The field of the shapefile's DBF table that is linked to the text box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="font">
      <xs:annotation>
        <xs:documentation>The font to use for the text box's text. If not specified, this value is inherited from the page's font attribute.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="fontsize">
      <xs:annotation>
        <xs:documentation>The font size to use for the text box's text. If not specified, this value is inherited from the page's fontsize attribute.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="regular" ref="fontstyle">
      <xs:annotation>
        <xs:documentation>The font style to use for the text box's text. If not specified, this value is inherited from the page's fontstyle attribute. If the value is not regular, it can be any combination of other values, expressed as a comma delimited list (for example, fontstyle="bold,underline").</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="false" ref="group">
      <xs:annotation>
        <xs:documentation>Specifies whether the text box starts a new group of controls.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="hscroll" />
    <xs:attribute ref="lowercase" />
    <xs:attribute ref="maxvalue">
      <xs:annotation>
        <xs:documentation>Specifies the maximum value allowed for the control. This can be a numeric or text value.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="minvalue" />
    <xs:attribute ref="multiline" />
    <xs:attribute ref="name">
      <xs:annotation>
        <xs:documentation>Name of the Edit control. Used to reference the control in scripts.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="onchange">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="onkillfocus">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="onsetfocus">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="onvalidate">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="password" />
    <xs:attribute default="false" ref="readonly">
      <xs:annotation>
        <xs:documentation>Specifies whether the text box's value can be modified by the user.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="false" ref="required">
      <xs:annotation>
        <xs:documentation>Specifies if the user must enter some text in the text box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="auto" ref="sip">
      <xs:annotation>
        <xs:documentation>Specifies if the SIP (soft input panel) is displayed on pen devices when the text box gets the focus.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute default="true" ref="tabstop">
      <xs:annotation>
        <xs:documentation>Specifies whether the TAB key can be used to move the focus to the text box.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute ref="uppercase" />
    <xs:attribute ref="vscroll" />
  </xs:complexType>
</xs:element>

See Also

© 2012 All Rights Reserved.